﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MainHeadhunter.Master" AutoEventWireup="true" CodeBehind="SearchResults.aspx.cs" Inherits="LAB3_Cv.SearchResults" %>

<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <asp:ListView ID="ListViewCv" runat="server" DataKeyNames="ApplicantId" OnItemCommand="ListViewCv_ItemCommand">
        <ItemTemplate>
            <tr>
                <td><%# Eval("FirstName")%></td>
                <td><%# Eval("LastName")%></td>
                <td><%# Eval("PersonNumber")%></td>
                <td><%# Eval("City")%></td>

                <td><asp:Button ID="ButtonShowCv" runat="server" Text="Välj CV" /></td>
            </tr>
        </ItemTemplate>
        <LayoutTemplate>
            <table id="tableWorkAds" runat="server">
                <tr id="tr1" runat="server">
                    <td id="td1" runat="server">Förnamn</td>
                    <td id="td2" runat="server">Efternamn:</td>
                    <td id="td3" runat="server">Personnummer:</td>
                    <td id="td4" runat="server">Stad:</td>
                    <td id="td5" runat="server">Jämför:</td>
                </tr>
                <tr id="ItemPlaceholder" runat="server">
                </tr>
            </table>
        </LayoutTemplate>
    </asp:ListView>
    <asp:Button ID="ButtonCompareCv" runat="server" Text="Jämför Cv" OnClick="ButtonCompareCv_Click" />

    <asp:Label ID="LabelToManySelected" runat="server" Text="Du får välja max 3 cvn!" Visible="False"></asp:Label>

</asp:Content>
